package com.jy.oms.framework.asyn.task.log.database.entity;

import java.util.Date;

/**
 * 任务日志
 *
 * @author liuquan
 */
public class SysTaskLog {

    private Long id;

    /**
     * 业务组标识
     */
    private String businessGroup;

    /**
     * 任务编码
     */
    private String taskCode;

    /**
     * 任务参数
     */
    private String taskParam;

    /**
     * 相关单号
     */
    private String billCode;

    /**
     * 状态，1完成，0错误
     */
    private Integer state;

    /**
     * 错误日志
     */
    private String response;

    /**
     * 执行次数
     */
    private Integer callCount;

    /**
     * 耗时
     */
    private Long costTime;

    /**
     * 回调状态
     */
    private Integer callbackState;

    /**
     * 回调方法耗时
     */
    private long callbackCostTime;

    /**
     * 校验器耗时
     */
    private long checkerCostTime;

    /**
     * 环境，生产-prod，预发-stg，测试-test，开发-dev
     */
    private String envFlag;

    /**
     * 任务创建时间
     */
    private Date taskCreateTime;

    private String uuid;

    private Date createDate;

    private String createBy;

    private Date updateDate;

    private String updateBy;

    public String getBusinessGroup() {
        return businessGroup;
    }

    public SysTaskLog setBusinessGroup(String businessGroup) {
        this.businessGroup = businessGroup;
        return this;
    }

    public String getTaskCode() {
        return taskCode;
    }

    public SysTaskLog setTaskCode(String taskCode) {
        this.taskCode = taskCode;
        return this;
    }

    public String getTaskParam() {
        return taskParam;
    }

    public SysTaskLog setTaskParam(String taskParam) {
        this.taskParam = taskParam;
        return this;
    }

    public String getBillCode() {
        return billCode;
    }

    public SysTaskLog setBillCode(String billCode) {
        this.billCode = billCode;
        return this;
    }

    public Integer getState() {
        return state;
    }

    public SysTaskLog setState(Integer state) {
        this.state = state;
        return this;
    }

    public String getResponse() {
        return response;
    }

    public SysTaskLog setResponse(String response) {
        this.response = response;
        return this;
    }

    public Integer getCallCount() {
        return callCount;
    }

    public SysTaskLog setCallCount(Integer callCount) {
        this.callCount = callCount;
        return this;
    }

    public Long getCostTime() {
        return costTime;
    }

    public SysTaskLog setCostTime(Long costTime) {
        this.costTime = costTime;
        return this;
    }

    public String getEnvFlag() {
        return envFlag;
    }

    public SysTaskLog setEnvFlag(String envFlag) {
        this.envFlag = envFlag;
        return this;
    }

    public Date getTaskCreateTime() {
        return taskCreateTime;
    }

    public SysTaskLog setTaskCreateTime(Date taskCreateTime) {
        this.taskCreateTime = taskCreateTime;
        return this;
    }

    public Integer getCallbackState() {
        return callbackState;
    }

    public SysTaskLog setCallbackState(Integer callbackState) {
        this.callbackState = callbackState;
        return this;
    }

    public long getCallbackCostTime() {
        return callbackCostTime;
    }

    public SysTaskLog setCallbackCostTime(long callbackCostTime) {
        this.callbackCostTime = callbackCostTime;
        return this;
    }

    public long getCheckerCostTime() {
        return checkerCostTime;
    }

    public SysTaskLog setCheckerCostTime(long checkerCostTime) {
        this.checkerCostTime = checkerCostTime;
        return this;
    }

    public String getUuid() {
        return uuid;
    }

    public SysTaskLog setUuid(String uuid) {
        this.uuid = uuid;
        return this;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }
}
